﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uc-loai-xe.ascx.cs" Inherits="VanTaiTMS.SubPage.uc_loai_xe" %>
<!------Popup------>
<script type="text/javascript">
    $(document).ready(function () {
        //setup new person dialog
        $('#ucthongbao').dialog({
            autoOpen: false,
            draggable: true,
            height: "auto",
            width: "372px",
            position: ['center', 50],
            resizable: false,

            create: function (event) { $(event.target).parent().css('position', 'fixed'); },
            open: function (type, data) {
                $(this).parent().appendTo("form");
            }
        });
    });
</script>
<!-------End------->

<!-------------Edit-Dữ-Liệu-------------->
<div id="loaixe" title="Cập nhật loại xe">
    <asp:UpdatePanel ID="upNewUpdatePanel" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
        <ContentTemplate>
            <div class="toolbar-ui-all-big">
                 <asp:ImageButton CssClass="button-all" ID="imgSave" ImageAlign="Middle" 
                    ImageUrl="~/Icon/save.png" runat="server" 
                    onclick="imgSave_Click" />

                 <asp:ImageButton CssClass="button-all" ID="imgrefesh" ImageAlign="Middle" 
                    ImageUrl="~/Icon/refesh-ui.png" ToolTip="Làm tươi" runat="server" 
                    onclick="imgrefesh_Click" />
            </div>

            <div class="clr"></div>

            <div class="ui-main">
                <div style="display: none"><asp:Label ID="lbID" runat="server"></asp:Label></div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Mã loại xe <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtMaLoaiXe" CssClass="textbox" runat="server"></asp:TextBox>
                </div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Tên loại xe <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtTenLoaiXe" CssClass="textbox" runat="server"></asp:TextBox>
                </div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Trọng tải <span style="color:Red">(*)</span>
                    </label>
                    <asp:DropDownList ID="drTrongTai" runat="server" CssClass="select-drop" AutoPostBack="true"
                        AppendDataBoundItems="True" OnSelectedIndexChanged="drTrongTai_SelectedIndexChanged">
                        <asp:ListItem Value="-1">--Vui lòng chọn trọng tải--</asp:ListItem>
                    </asp:DropDownList>
                </div>

                <div class="clr"></div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Số chổ ngồi <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtSoCho" CssClass="textbox" onkeypress="return ValidateKeypress(/\d/,event);" runat="server"></asp:TextBox>
                </div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Số lượng xe <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtSoLuongXe" CssClass="textbox" onkeypress="return ValidateKeypress(/\d/,event);" runat="server"></asp:TextBox>
                </div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Trọng tải <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtTrongTai" CssClass="textbox" onkeypress="return ValidateKeypress(/\d/,event);" runat="server"></asp:TextBox>
                </div>

                <div class="clr"></div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Chiều dài <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtChieuDai" CssClass="textbox" onkeypress="return ValidateKeypress(/\d/,event);" runat="server"></asp:TextBox>
                </div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Chiều rộng <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtChieuRong" CssClass="textbox" onkeypress="return ValidateKeypress(/\d/,event);" runat="server"></asp:TextBox>
                </div>

                <div class="ui-box-text-box">
                    <label class="label">
                        Chiều cao <span style="color:Red">(*)</span></label>
                    <asp:TextBox ID="txtChieuCao" CssClass="textbox" onkeypress="return ValidateKeypress(/\d/,event);" runat="server"></asp:TextBox>
                </div>
            <div class="clr"></div>
            </div>

            <div class="clr"></div>
            <asp:UpdateProgress ID="UpdateProgress1" runat="server"  AssociatedUpdatePanelID="upNewUpdatePanel">
                <ProgressTemplate>
                    <img alt='loadding' class="loading" src="../images/loading-fb.gif" /><br />
                    <div class="loading-label-right">
                        Đang xử lý dữ liệu...
                    </div>
                </ProgressTemplate>
            </asp:UpdateProgress>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="imgSave" EventName="Click" />
        </Triggers>
    </asp:UpdatePanel>
</div>
<!--------------Kêt-thúc----------------->

<!-------------Thông-Bao----------------->
<div id="ucthongbao" title="Thông Báo">
    <asp:UpdatePanel ID="updatePanelThongBao" UpdateMode="Conditional" ChildrenAsTriggers="true" runat="server">
        <ContentTemplate>
            <p>
                <span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
                <asp:Label ID="lbThongBaoLoi" CssClass="error-msg" runat="server" Text=""></asp:Label>
            </p>
            <hr />
            <div class="toolbar-ui-footer">
                <asp:Button ID="cmdCloseThongBao" CssClass="btn btn-info" Height="29px" runat="server" 
                    Text="Đóng lại" onclick="cmdCloseThongBao_Click" />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</div>
<!--------------Kêt-thúc----------------->